package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author lmshe
 * @since 2018-07-12
 */
@TableName("w_project_table")
public class ProjectTable extends Model<ProjectTable> {

    private static final long serialVersionUID = 1L;

    /**
     * 项目功能表
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 所属项目
     */
	@TableField("project_config_id")
	private Integer projectConfigId;
    /**
     * 表名
     */
	@TableField("table_name")
	private String tableName;
    /**
     * 表功能描述
     */
	@TableField("table_desc")
	private String tableDesc;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getProjectConfigId() {
		return projectConfigId;
	}

	public void setProjectConfigId(Integer projectConfigId) {
		this.projectConfigId = projectConfigId;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getTableDesc() {
		return tableDesc;
	}

	public void setTableDesc(String tableDesc) {
		this.tableDesc = tableDesc;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ProjectTable{" +
			"id=" + id +
			", projectConfigId=" + projectConfigId +
			", tableName=" + tableName +
			", tableDesc=" + tableDesc +
			"}";
	}
}
